package com.common.platform.auth.exception;

/**
 * 认证失败（账号密码错误，账号冻结，token过期等)
 */
public class AuthException<AbstractBaseExceptionEnum> extends RuntimeException {
    private Integer code;
    private String errorMessage;

    public AuthException() {
        super("认证失败！");
        this.code = 500;
        this.errorMessage = "认证失败！";
    }

    public AuthException(AbstractBaseExceptionEnum exception){
        super(exception.getMessage());
        this.code = exception.getCode();
        this.errorMessage = exception.getMessage();





       }



}


